<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'menu-role-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row oneLineLabel">
     
        <?php echo $form->labelEx($model, 'roleId'); ?>
        <?php echo $form-> ListBox($model, 'roleId',
            CHtml::listData(Role::model()->findAll(), 'id', 'name'),
            array('attributeitem' => 'roleId', 'checkAll' => 'Check All')); ?>
        <?php echo $form->error($model, 'roleId'); ?>
    </div>
    
	<div class="row oneLineLabel">
        <?php echo $form->labelEx($model, 'menuId'); ?>
        <?php echo $form->ListBox($model, 'menuId',
            CHtml::listData(Menu::model()->findAll(), 'id', 'name'),
            array('attributeitem' => 'menuId', 'checkAll' => 'Check All')); ?>
        <?php echo $form->error($model, 'menuId'); ?>
    </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->